home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / pkgtools < prev    next >
Encoding:
Text File  |  2010-11-16  |  534 b   |  23 lines

  1. # bash completion for Slackware Linux pkgtools
  2.  
  3. have removepkg && [ -f /etc/slackware-version ] &&
  4. _removepkg()
  5. {
  6.     local packages cur
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur
  10.  
  11.     COMPREPLY=( $( (cd /var/log/packages; compgen -f -- "$cur") ) )
  12. } &&
  13. complete -F _removepkg -o filenames removepkg &&
  14.     complete -o dirnames -f -X '!*.t[bglx]z' installpkg upgradepkg explodepkg
  15.  
  16. # Local variables:
  17. # mode: shell-script
  18. # sh-basic-offset: 4
  19. # sh-indent-comment: t
  20. # indent-tabs-mode: nil
  21. # End:
  22. # ex: ts=4 sw=4 et filetype=sh
  23.